package com.shop.prj.service.impl;

import com.shop.prj.bean.OrderItem;
import com.shop.prj.dao.Impl.OrderItemDaoImpl;
import com.shop.prj.dao.OrderItemDao;
import com.shop.prj.service.OrderItemService;

import java.util.List;

public class OrderItemServiceImpl implements OrderItemService {
    OrderItemDao orderItemDao=new OrderItemDaoImpl();
    @Override
    public int insert(OrderItem orderItem) {
        return orderItemDao.insert(orderItem);
    }

    @Override
    public int delete(Integer id) {
        return orderItemDao.delete(id);
    }

    @Override
    public List<OrderItem> queryAll() {
        return orderItemDao.queryAll();
    }
}
